package com.pickgliss.ui.text
{
	import com.pickgliss.ui.ShowTipManager;
	import com.pickgliss.ui.core.ITipedDisplay;
	
	import flash.display.DisplayObject;
	
	public class FilterFrameTextWithTips extends FilterFrameText implements ITipedDisplay
	{
		private var _tipStyle:String;
		private var _tipGapV:int;
		private var _tipGapH:int;
		private var _tipDirctions:String;
		private var _tipData:Object;
		
		public function FilterFrameTextWithTips()
		{
			super();
			ShowTipManager.Instance.addTip(this);
		}
		
		public function get tipData():Object
		{
			return _tipData;
		}
		
		public function set tipData(value:Object):void
		{
			_tipData = value;
		}
		
		public function get tipDirctions():String
		{
			return _tipDirctions;
		}
		
		public function set tipDirctions(value:String):void
		{
			_tipDirctions = value;
		}
		
		public function get tipGapH():int
		{
			return _tipGapH;
		}
		
		public function set tipGapH(value:int):void
		{
			_tipGapH = value;
		}
		
		public function get tipGapV():int
		{
			return _tipGapV;
		}
		
		public function set tipGapV(value:int):void
		{
			_tipGapV = value;
		}
		
		public function get tipStyle():String
		{
			return _tipStyle;
		}
		
		public function set tipStyle(value:String):void
		{
			_tipStyle = value;
		}
		
		public function asDisplayObject():DisplayObject
		{
			return this;
		}
		
		override public function dispose():void
		{
			super.dispose();
			ShowTipManager.Instance.removeTip(this);
		}
	}
}